package GUIStudy.Basis.JButtonProgram;

import javax.swing.JFrame;
import javax.swing.JButton;

public class Basis1 {
    public static void main(String[] args) {
        JFrame frame = new JFrame("test");
        JButton button1 = new JButton("开始");
        JButton button2 = new JButton("结束");
        button1.setBounds(100, 200, 100, 50);
        button2.setBounds(300, 200, 100, 50);
        frame.add(button1);
        frame.add(button2);
        frame.setSize(500, 550);
        frame.setDefaultCloseOperation(3);
        frame.setAlwaysOnTop(true);
        frame.setLayout(null);
        frame.setVisible(true);
    }
}
